package io.renren.common.http;

import io.renren.modules.offer.service.OfferService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by lxg
 * on 2017/2/6.
 */
@RestController
public class HttpClientController {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Resource
    private HttpAPIService httpAPIService;

    @Resource
    private OfferService offerService;

    @Value("${offerslook.apiDomain}")
    private String apiDomain;

    @Value("${offerslook.getBatchesOffersURI}")
    private String getBatchesOffersURI;

    @RequestMapping("pull")
    public String test() throws Exception {
        return "success";
    }

    @RequestMapping("push")
    public String push() throws Exception {
        return "success";
    }
}
